<!--title-->
<div class="mnav1">
    <div class="m_nav">
        <div class="nav_left">
            <em class="home_icon"><?=$this->sys_name?></em><span>&nbsp;&gt;&nbsp;</span><font><?=$this->title?></font>
        </div>
    </div>
</div>

<div class="content-table">
    <div class="content-table-title"><?=$this->title?></div>
    <br />
    <?php if($this->msg):?>
        <div class="replace"><?=$this->msg?></div>
        <br />
    <?php endif;?>
        <div align="center"><a href="/others/admin-add"><font color="green"><b>【添加用户】</b></font></a></div>
        <br />
    <table>
        <tr>
            <th>ID</th>
            <th>角色</th>
            <th>登录名</th>
            <th>姓名</th>
            <th>邮箱</th>
            <th>创建时间</th>
            <th>状态</th>
            <th width="120">操作</th>
        </tr>
        <?php if($this->data):?>
        <?php foreach($this->data as $data):?>
                <tr>
                    <td><?=$data['id']?></td>
                    <td><?=$data['roleName']?></td>
                    <td><?=$data['username']?></td>
                    <td><?=$data['realName']?></td>
                    <td><?=$data['email']?></td>
                    <td><?=$data['createTime']?></td>
                    <td style="color: <?=($data['status']?"green":"red")?>"><?=($data['status']?"正常":"冻结")?></td>
                    <td><?php if(100 != $data['id']):?><button type="button" onclick="window.location.href='/others/admin-edit/admin_id/<?=$data['id']?>'">编辑</button><?php endif;?></td>
                </tr>
            <?php endforeach;?>
        <?php endif;?>
    </table>